<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<!-- CSS 文件 ，不要删，不够自己添加 -->
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../css/bootstrap-table.min.css">
<link rel="stylesheet" href="../assets/css/azzara.min.css">
<link rel="stylesheet" href="../assets/css/demo.css">
<link rel="stylesheet" href="css/buttonlocation.css">
<body>

    <!--这里选择的是80%的容器，如果需要100%的话，自己修改一下-->
    <div class="container div1">
        <!--内容在这里面添加就好了-->
        <div>
            当前等待复核登记的生产派工单总数：<span id="zongshu"></span> 例
        </div>
        <table id="scdjTable"></table>
    </div>

    <div class="container div2" style="display: none;text-align: right;">
        <button class="btn btn-secondary" onclick="returnList()">返回审核列表</button>
    </div>
    <div class="container div2" style="display: none;border: 1px solid black">
        <h1 style="text-align: center;">生产登记单</h1>
        <form>
            <div style="width: 48%;display: inline-block">
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">派工单编号：</label>
                    <div class="col-md-9 p-0">
                        <span class="manufactureId"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">产品编号：</label>
                    <div class="col-md-9 p-0">
                        <span id="productId"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">描述：</label>
                    <div class="col-md-9 p-0">
                        <span id="productDescribe"></span>
                    </div>
                </div>

            </div>
            <div style="width: 48%;display: inline-block">

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">出库单编号：</label>
                    <div class="col-md-9 p-0">
                        <span></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">产品名称：</label>
                    <div class="col-md-9 p-0">
                        <span id="productName"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">数量：</label>
                    <div class="col-md-9 p-0">
                        <span id="amount"></span>
                    </div>
                </div>

            </div>
            <table class="table table-bordered table1">
                <tr>
                    <th>工序名称</th>
                    <th>设计工时数</th>
                    <th>实际工时数</th>
                    <th>设计工时成本(元)</th>
                    <th>实际工时成本</th>
                    <th>设计物料成本(元)</th>
                    <th>实际物料成本</th>
                    <th>工序登记</th>
                    <th>交接登记</th>
                </tr>
                <tbody id="tbodyForTr">

                </tbody>
            </table>
            <div style="width: 48%;display: inline-block">
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">设计工时总成本(元)：</label>
                    <div class="col-md-9 p-0">
                        <span id="labourCostPriceSum"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">实际工时总成本(元)：</label>
                    <div class="col-md-9 p-0">
                        <span id="realLabourCostPriceSum"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">登记人：</label>
                    <div class="col-md-9 p-0">
                        <span id="register"></span>
                    </div>
                </div>
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">复核人：</label>
                    <div class="col-md-9 p-0">
                        <span id="checker"></span>
                    </div>
                </div>
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">备注：</label>
                    <div class="col-md-9 p-0">
                        <span id="remark"></span>
                    </div>
                </div>

            </div>
            <div style="width: 48%;display: inline-block">

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">设计物料总成本(元)：</label>
                    <div class="col-md-9 p-0">
                        <span id="moduleCostPriceSum"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">实际物料总成本(元)：</label>
                    <div class="col-md-9 p-0">
                        <span id="realModuleCostPriceSum"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">登记时间：</label>
                    <div class="col-md-9 p-0">
                        <span id="registerTime"></span>
                    </div>
                </div>
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">复核时间：</label>
                    <div class="col-md-9 p-0">
                        <span id="checkTime"></span>
                    </div>
                </div>

            </div>

        </form>
    </div>

    <div class="container div3" style="display: none;text-align: right;">
        <button class="btn btn-secondary" onclick="submitRegister()">审核通过</button>
        <button class="btn btn-secondary" onclick="returnGongXu()">返回</button>
    </div>
    <div class="container div3" style="display: none;border: 1px solid black">
        <h1 style="text-align: center;">生产登记单</h1>
        <form>
            <div style="width: 48%;display: inline-block">
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">派工单编号：</label>
                    <div class="col-md-9 p-0">
                        <span class="manufactureId"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">负责人：</label>
                    <div class="col-md-9 p-0">
                        <span id="fuzeren"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">已用工时数：</label>
                    <div class="col-md-9 p-0">
                        <span id="yygss"></span>
                    </div>
                </div>

            </div>
            <div style="width: 48%;display: inline-block">

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">工序名称：</label>
                    <div class="col-md-9 p-0">
                        <span id="gxmc"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">设计工时数：</label>
                    <div class="col-md-9 p-0">
                        <span id="sjgss"></span>
                    </div>
                </div>

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">本次工时数：</label>
                    <div class="col-md-9 p-0">
                        <input class='form-control input-full' readonly id="bcgss">
                    </div>
                </div>

            </div>
            <table class="table table-bordered table1">
                <tr>
                    <th>序号</th>
                    <th>物料名称</th>
                    <th>物料编号</th>
                    <th>设计数量</th>
                    <th>补充数量</th>
                    <th>已使用数量</th>
                    <th>本次使用数量</th>
                    <th></th>
                </tr>
                <tbody id="tbodyModuleForTr">

                </tbody>
            </table>
            <div style="width: 48%;display: inline-block">
                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">复核人：</label>
                    <div class="col-md-9 p-0">
                        <span id="fuheren"></span>
                    </div>
                </div>

            </div>
            <div style="width: 48%;display: inline-block">

                <div class="form-group form-inline">
                    <label class="col-md-3 col-form-label">复核时间：</label>
                    <div class="col-md-9 p-0">
                        <span id="fuheshijian"></span>
                    </div>
                </div>

            </div>

        </form>
    </div>

    <!-- 模态框 -->
    <div class="modal fade" id="myModal">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">

                <!-- 模态框头部 -->
                <div class="modal-header">
                    <h4 class="modal-title">交接登记</h4>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- 模态框主体 -->
                <div class="modal-body">
                    <h5>请先确认好合格数量再提交</h5>
                    <div class="form-group form-inline label1" style="display: none;">
                        <label class="col-md-3 col-form-label">
                            计划的生产数量：<span class="tishi"></span></label>
                    </div>
                    <div class="form-group form-inline label2" style="display: none;">
                        <label class="col-md-3 col-form-label">
                            上一个工序合格数量：<span class="tishi"></span></label>
                    </div>
                    <div class="form-group form-inline">
                        <label class="col-md-3 col-form-label">请验证本工序合格数量：</label>
                        <div class="col-md-9 p-0">
                            <input type="number"  class='form-control input-full' id="realAmount">
                        </div>
                        <span style="color: red" id="msg"></span>
                    </div>
                </div>

                <!-- 模态框底部 -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" onclick="submitYes()">提交审核</button>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>

            </div>
        </div>
    </div>


    <!--js用到的包，不够在自己添加-->
<script src="../js/jquery.3.2.1.min.js"></script>
<script src="../js/popper.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/bootstrap-table.min.js"></script>
<script src="../js/bootstrap-table-zh-CN.min.js"></script>
<script src="../js/common.js"></script>
<script src="js/scdjfh.js"></script>
</body>
</html>